<ion-view hide-back-button="true" style="background-color: #fff" title="发表评价">
  <ion-nav-buttons side="left">
    <button class="button button-clear" ng-click="goBack()">
      <i class="icon ion-chevron-left"></i>
    </button>
  </ion-nav-buttons>
  <ion-content>
    <div style="height: 5px"></div>
    <div class="list order-list" style="font-size: 11px" ng-repeat="product in order.order_products">
      <a class="item item-thumbnail-left" href="#" style="background-color: #efefef">
        <img src="img/hd/pic_dd.png" ng-if="!product.smimgurl"/>
				<img ng-src="{{product.smimgurl}}" ng-if="product.smimgurl"/>
        <span style="float: left">
          <h3 style="margin-left: -30px">{{product.name}}</h3>
          <p style="margin-left: -30px">编号：{{product.barcode}}</p>
          <p style="margin-left: -30px; height: 20px">{{product.scale}}</p>
        </span>
        <span style="float: right;text-align: right">
          <p>￥{{product.realprice}}</p>
          <p>
            <i class="ion-close-round" style="font-size: 12px"></i>{{product.num}}</p>
        </span>
        <div style="clear: both"></div>
      </a>
      <div class="item">
        <div class="row no-padding">
          <div class="col-30" style="padding-top: 3px;">
            评分:
          </div>
          <div class="col-60" ng-init="product.score=3;max=5" style="padding-left: 10px;">
            <rating max="max" ng-model="product.score" readonly="false"></rating>
          </div>
        </div>
      </div>
      <div class="item item-input item-input-wrapper">
        <textarea ng-model="product.comment" placeholder="亲，写点什么吧，您的意见对我们有很大的帮助！" rows="8"></textarea>
      </div>
    </div>

    <!-- <div class="list">
      <div class="item">
        <div class="row no-padding">
          <div class="col-30" style="padding-top: 3px;">
            配送服务评分:
          </div>
          <div class="col-60" ng-init="sendrate=0;max=5" style="padding-left: 10px;">
            <rating max="max" id="sendrate" ng-model="sendrate" readonly="false"></rating>
          </div>
        </div>
      </div>
    </div> -->
  </ion-content>
  <button class="piece-btn main-background" style="width: 100%; position: fixed; bottom: 0px; border-top: 2px solid #eee; height: 55px; padding-top: 10px; padding-bottom: 10px; font-size: 16px" ng-click="addComment()">
    发表评论
  </button>
</ion-view>
